package com.zkjl.protect_business.entity;

import com.zkjl.protect_business.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * 业务培训
 **/
@Data
@ApiModel(value = "AssessmentPolitical对象", description = "政治考核")
@Document(indexName = "pb_business_zhuanxiangrenwu_zhengzhikaohe", shards = 1, replicas = 0)
public class AssessmentPolitical extends BaseEntity {

    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    @Field(type = FieldType.Keyword)
    @ApiModelProperty(value = "名称")
    private String name;

    @Field(type = FieldType.Keyword)
    @ApiModelProperty(value = "考核类型")
    private String type;

    @Field(type = FieldType.Keyword)
    @ApiModelProperty(value = "考核说明")
    private String describe;

    @ApiModelProperty(notes = "参与单位")
    private List<String> orgIds;

    @ApiModelProperty(value = "考核时间")
    @Field(name = "assessment_time",type = FieldType.Date)
    private Long assessmentTime;

    @ApiModelProperty(value = "关联业务id 用来查询详情的人员列表")
    @Field(name = "business_id",type = FieldType.Keyword)
    private String businessId;

    @ApiModelProperty(value = "考核人数")
    @Field(type = FieldType.Long)
    private Long num;

    @ApiModelProperty(value = "模板id")
    @Field(name = "template_id", type = FieldType.Keyword)
    private String templateId;


}
